data = load('paracetamol.txt');
X = data(:, 1); y = data(:, 2);

%plot(y, X, 'go', 'MarkerFaceColor', 'y', 'MarkerSize', 7);

x = 1:0.1:6;
y1 = zeros(length(x));
for i=1:length(x)
	y1(i) = 9.17 + 2.02 * cos(4.38*x(i) -10.5);
endfor
hold on;
axis ([1 6 5 15]);

plot(X, y, 'r+','LineWidth', 2, 'MarkerSize', 7);
plot (x, y1, 'go', 'MarkerFaceColor', 'y', 'MarkerSize', 7);

% Put some labels 
% Labels and Legend
legend('Fentanil', 'Kriva')
xlabel('Fentanil')
ylabel('Paracetamol')

hold off;
